package com.demo.core.dao.impl;

import com.demo.core.dao.SiteGroupDao;
import com.demo.core.dao.impl.base.BaseCoreDaoSupport;
import com.demo.core.model.SiteGroup;
import com.demo.core.model.support.GeneralExecuteModel;

/**
 * 站点分组数据访问层实现类
 * 
 * @author ryuu.kk
  */
public class SiteGroupDaoImpl extends BaseCoreDaoSupport<SiteGroup, Long> implements SiteGroupDao {

	/**
	 * 站点空间 
	 */
	protected final static String SITE_GROUP_SPACE = "siteGroupSpace.";
	/**
	 * 模型表名
	 */
	protected final static String TABLE_NAME = "T_CORE_SITE_GROUP";
	/**
	 * 模型表主键ID
	 */
	protected final static String TABLE_PK_NAME = "ID";
	@Override
	protected String nameSpace() {
		return SITE_GROUP_SPACE;
	}
	@Override
	protected void doInit(GeneralExecuteModel<Long> model) {
		model.setPk(TABLE_PK_NAME);
		model.setTable(TABLE_NAME);
	}
}
